package com.jeenms.test.jvm;

public class MemDemo {
	//-Xmx1024m -Xms1024m -XX:+PrintGCDetails
	public static void main(String[] args) {
		long maxMemory = Runtime.getRuntime().maxMemory();
		long totalMemory = Runtime.getRuntime().totalMemory();
		System.out.println("MAX_MEMORY(MB):" + maxMemory/(double)1024/1024);
		System.out.println("TOTAL_MEMORY(MB):" + totalMemory/(double)1024/1024);
	}

}
